package com.stlm2.dems.entity.base;

import com.stlm2.dems.entity.ValueAddedServicesKind;
import com.stlm2.dems.entity.ValueAddedServicesType;

import java.math.BigDecimal;

/**
 * Created by zlq on 2017/10/16.
 */
public class BaseValueAddedServices {
    //
    private int id;
    //增值服务名称
    private String  name;
    //服务价格
    private BigDecimal price;
    //详情路径
    private String detailsUrl;
    //保修期(单位：月)
    private int warrantyPeriod;
    //服务类型
    private ValueAddedServicesType valueAddedServicesType;
    //服务种类
    private ValueAddedServicesKind valueAddedServicesKind;
    //服务次数
    private Integer next;

    private String label;

    private Boolean state;

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public ValueAddedServicesKind getValueAddedServicesKind() {
        return valueAddedServicesKind;
    }

    public void setValueAddedServicesKind(ValueAddedServicesKind valueAddedServicesKind) {
        this.valueAddedServicesKind = valueAddedServicesKind;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getWarrantyPeriod() {
        return warrantyPeriod;
    }

    public void setWarrantyPeriod(int warrantyPeriod) {
        this.warrantyPeriod = warrantyPeriod;
    }

    public ValueAddedServicesType getValueAddedServicesType() {
        return valueAddedServicesType;
    }

    public void setValueAddedServicesType(ValueAddedServicesType valueAddedServicesType) {
        this.valueAddedServicesType = valueAddedServicesType;
    }

    public Integer getNext() {
        return next;
    }

    public void setNext(Integer next) {
        this.next = next;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getDetailsUrl() {
        return detailsUrl;
    }

    public void setDetailsUrl(String detailsUrl) {
        this.detailsUrl = detailsUrl;
    }

    public Integer getValueAddedServicesTypeValue(){
        return (valueAddedServicesType != null) ? valueAddedServicesType.getIntValue() : null;
    }

    public void setValueAddedServicesTypeValue(Integer v){
        if(v != null)
            valueAddedServicesType = ValueAddedServicesType.getByIntValue(v);
    }

    public Integer getValueAddedServicesKindValue(){
        return (valueAddedServicesKind != null) ? valueAddedServicesKind.getIntValue() : null;
    }

    public void setValueAddedServicesKindValue(Integer v){
        if(v != null)
            valueAddedServicesKind = ValueAddedServicesKind.getByIntValue(v);
    }
}
